
get-ip5:     file format elf64-littleaarch64


Disassembly of section .init:

00000000004005d8 <_init>:
  4005d8:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  4005dc:	910003fd 	mov	x29, sp
  4005e0:	94000042 	bl	4006e8 <call_weak_fn>
  4005e4:	a8c17bfd 	ldp	x29, x30, [sp], #16
  4005e8:	d65f03c0 	ret

Disassembly of section .plt:

00000000004005f0 <.plt>:
  4005f0:	a9bf7bf0 	stp	x16, x30, [sp, #-16]!
  4005f4:	90000090 	adrp	x16, 410000 <__FRAME_END__+0xf660>
  4005f8:	f947fe11 	ldr	x17, [x16, #4088]
  4005fc:	913fe210 	add	x16, x16, #0xff8
  400600:	d61f0220 	br	x17
  400604:	d503201f 	nop
  400608:	d503201f 	nop
  40060c:	d503201f 	nop

0000000000400610 <inet_ntoa@plt>:
  400610:	b0000090 	adrp	x16, 411000 <inet_ntoa@GLIBC_2.17>
  400614:	f9400211 	ldr	x17, [x16]
  400618:	91000210 	add	x16, x16, #0x0
  40061c:	d61f0220 	br	x17

0000000000400620 <__libc_start_main@plt>:
  400620:	b0000090 	adrp	x16, 411000 <inet_ntoa@GLIBC_2.17>
  400624:	f9400611 	ldr	x17, [x16, #8]
  400628:	91002210 	add	x16, x16, #0x8
  40062c:	d61f0220 	br	x17

0000000000400630 <memset@plt>:
  400630:	b0000090 	adrp	x16, 411000 <inet_ntoa@GLIBC_2.17>
  400634:	f9400a11 	ldr	x17, [x16, #16]
  400638:	91004210 	add	x16, x16, #0x10
  40063c:	d61f0220 	br	x17

0000000000400640 <close@plt>:
  400640:	b0000090 	adrp	x16, 411000 <inet_ntoa@GLIBC_2.17>
  400644:	f9400e11 	ldr	x17, [x16, #24]
  400648:	91006210 	add	x16, x16, #0x18
  40064c:	d61f0220 	br	x17

0000000000400650 <__gmon_start__@plt>:
  400650:	b0000090 	adrp	x16, 411000 <inet_ntoa@GLIBC_2.17>
  400654:	f9401211 	ldr	x17, [x16, #32]
  400658:	91008210 	add	x16, x16, #0x20
  40065c:	d61f0220 	br	x17

0000000000400660 <abort@plt>:
  400660:	b0000090 	adrp	x16, 411000 <inet_ntoa@GLIBC_2.17>
  400664:	f9401611 	ldr	x17, [x16, #40]
  400668:	9100a210 	add	x16, x16, #0x28
  40066c:	d61f0220 	br	x17

0000000000400670 <socket@plt>:
  400670:	b0000090 	adrp	x16, 411000 <inet_ntoa@GLIBC_2.17>
  400674:	f9401a11 	ldr	x17, [x16, #48]
  400678:	9100c210 	add	x16, x16, #0x30
  40067c:	d61f0220 	br	x17

0000000000400680 <printf@plt>:
  400680:	b0000090 	adrp	x16, 411000 <inet_ntoa@GLIBC_2.17>
  400684:	f9401e11 	ldr	x17, [x16, #56]
  400688:	9100e210 	add	x16, x16, #0x38
  40068c:	d61f0220 	br	x17

0000000000400690 <ioctl@plt>:
  400690:	b0000090 	adrp	x16, 411000 <inet_ntoa@GLIBC_2.17>
  400694:	f9402211 	ldr	x17, [x16, #64]
  400698:	91010210 	add	x16, x16, #0x40
  40069c:	d61f0220 	br	x17

Disassembly of section .text:

00000000004006a0 <_start>:
  4006a0:	d280001d 	mov	x29, #0x0                   	// #0
  4006a4:	d280001e 	mov	x30, #0x0                   	// #0
  4006a8:	aa0003e5 	mov	x5, x0
  4006ac:	f94003e1 	ldr	x1, [sp]
  4006b0:	910023e2 	add	x2, sp, #0x8
  4006b4:	910003e6 	mov	x6, sp
  4006b8:	580000c0 	ldr	x0, 4006d0 <_start+0x30>
  4006bc:	580000e3 	ldr	x3, 4006d8 <_start+0x38>
  4006c0:	58000104 	ldr	x4, 4006e0 <_start+0x40>
  4006c4:	97ffffd7 	bl	400620 <__libc_start_main@plt>
  4006c8:	97ffffe6 	bl	400660 <abort@plt>
  4006cc:	00000000 	.inst	0x00000000 ; undefined
  4006d0:	004008bc 	.word	0x004008bc
  4006d4:	00000000 	.word	0x00000000
  4006d8:	004008e8 	.word	0x004008e8
  4006dc:	00000000 	.word	0x00000000
  4006e0:	00400968 	.word	0x00400968
  4006e4:	00000000 	.word	0x00000000

00000000004006e8 <call_weak_fn>:
  4006e8:	90000080 	adrp	x0, 410000 <__FRAME_END__+0xf660>
  4006ec:	f947f000 	ldr	x0, [x0, #4064]
  4006f0:	b4000040 	cbz	x0, 4006f8 <call_weak_fn+0x10>
  4006f4:	17ffffd7 	b	400650 <__gmon_start__@plt>
  4006f8:	d65f03c0 	ret
  4006fc:	00000000 	.inst	0x00000000 ; undefined

0000000000400700 <deregister_tm_clones>:
  400700:	b0000080 	adrp	x0, 411000 <inet_ntoa@GLIBC_2.17>
  400704:	91016000 	add	x0, x0, #0x58
  400708:	b0000081 	adrp	x1, 411000 <inet_ntoa@GLIBC_2.17>
  40070c:	91016021 	add	x1, x1, #0x58
  400710:	eb00003f 	cmp	x1, x0
  400714:	540000a0 	b.eq	400728 <deregister_tm_clones+0x28>  // b.none
  400718:	90000001 	adrp	x1, 400000 <_init-0x5d8>
  40071c:	f944c421 	ldr	x1, [x1, #2440]
  400720:	b4000041 	cbz	x1, 400728 <deregister_tm_clones+0x28>
  400724:	d61f0020 	br	x1
  400728:	d65f03c0 	ret
  40072c:	d503201f 	nop

0000000000400730 <register_tm_clones>:
  400730:	b0000080 	adrp	x0, 411000 <inet_ntoa@GLIBC_2.17>
  400734:	91016000 	add	x0, x0, #0x58
  400738:	b0000081 	adrp	x1, 411000 <inet_ntoa@GLIBC_2.17>
  40073c:	91016021 	add	x1, x1, #0x58
  400740:	cb000021 	sub	x1, x1, x0
  400744:	9343fc21 	asr	x1, x1, #3
  400748:	8b41fc21 	add	x1, x1, x1, lsr #63
  40074c:	9341fc21 	asr	x1, x1, #1
  400750:	b40000a1 	cbz	x1, 400764 <register_tm_clones+0x34>
  400754:	90000002 	adrp	x2, 400000 <_init-0x5d8>
  400758:	f944c842 	ldr	x2, [x2, #2448]
  40075c:	b4000042 	cbz	x2, 400764 <register_tm_clones+0x34>
  400760:	d61f0040 	br	x2
  400764:	d65f03c0 	ret

0000000000400768 <__do_global_dtors_aux>:
  400768:	a9be7bfd 	stp	x29, x30, [sp, #-32]!
  40076c:	910003fd 	mov	x29, sp
  400770:	f9000bf3 	str	x19, [sp, #16]
  400774:	b0000093 	adrp	x19, 411000 <inet_ntoa@GLIBC_2.17>
  400778:	39416260 	ldrb	w0, [x19, #88]
  40077c:	35000080 	cbnz	w0, 40078c <__do_global_dtors_aux+0x24>
  400780:	97ffffe0 	bl	400700 <deregister_tm_clones>
  400784:	52800020 	mov	w0, #0x1                   	// #1
  400788:	39016260 	strb	w0, [x19, #88]
  40078c:	f9400bf3 	ldr	x19, [sp, #16]
  400790:	a8c27bfd 	ldp	x29, x30, [sp], #32
  400794:	d65f03c0 	ret

0000000000400798 <frame_dummy>:
  400798:	17ffffe6 	b	400730 <register_tm_clones>

000000000040079c <get_local_ip>:
  40079c:	d10b03ff 	sub	sp, sp, #0x2c0
  4007a0:	a9007bfd 	stp	x29, x30, [sp]
  4007a4:	910003fd 	mov	x29, sp
  4007a8:	f9000fa0 	str	x0, [x29, #24]
  4007ac:	b902bbbf 	str	wzr, [x29, #696]
  4007b0:	52800002 	mov	w2, #0x0                   	// #0
  4007b4:	52800041 	mov	w1, #0x2                   	// #2
  4007b8:	52800040 	mov	w0, #0x2                   	// #2
  4007bc:	97ffffad 	bl	400670 <socket@plt>
  4007c0:	b902b7a0 	str	w0, [x29, #692]
  4007c4:	b942b7a0 	ldr	w0, [x29, #692]
  4007c8:	7100001f 	cmp	w0, #0x0
  4007cc:	5400072b 	b.lt	4008b0 <get_local_ip+0x114>  // b.tstop
  4007d0:	52805000 	mov	w0, #0x280                 	// #640
  4007d4:	b90023a0 	str	w0, [x29, #32]
  4007d8:	9100c3a0 	add	x0, x29, #0x30
  4007dc:	f90017a0 	str	x0, [x29, #40]
  4007e0:	910083a0 	add	x0, x29, #0x20
  4007e4:	aa0003e2 	mov	x2, x0
  4007e8:	d2912241 	mov	x1, #0x8912                	// #35090
  4007ec:	b942b7a0 	ldr	w0, [x29, #692]
  4007f0:	97ffffa8 	bl	400690 <ioctl@plt>
  4007f4:	7100001f 	cmp	w0, #0x0
  4007f8:	54000541 	b.ne	4008a0 <get_local_ip+0x104>  // b.any
  4007fc:	b94023a0 	ldr	w0, [x29, #32]
  400800:	93407c01 	sxtw	x1, w0
  400804:	b202e7e0 	mov	x0, #0xcccccccccccccccc    	// #-3689348814741910324
  400808:	f29999a0 	movk	x0, #0xcccd
  40080c:	9bc07c20 	umulh	x0, x1, x0
  400810:	d345fc00 	lsr	x0, x0, #5
  400814:	b902bfa0 	str	w0, [x29, #700]
  400818:	1400001d 	b	40088c <get_local_ip+0xf0>
  40081c:	9100c3a2 	add	x2, x29, #0x30
  400820:	b982bfa1 	ldrsw	x1, [x29, #700]
  400824:	aa0103e0 	mov	x0, x1
  400828:	d37ef400 	lsl	x0, x0, #2
  40082c:	8b010000 	add	x0, x0, x1
  400830:	d37df000 	lsl	x0, x0, #3
  400834:	8b000040 	add	x0, x2, x0
  400838:	aa0003e2 	mov	x2, x0
  40083c:	d29122a1 	mov	x1, #0x8915                	// #35093
  400840:	b942b7a0 	ldr	w0, [x29, #692]
  400844:	97ffff93 	bl	400690 <ioctl@plt>
  400848:	7100001f 	cmp	w0, #0x0
  40084c:	54000201 	b.ne	40088c <get_local_ip+0xf0>  // b.any
  400850:	9100c3a2 	add	x2, x29, #0x30
  400854:	b982bfa1 	ldrsw	x1, [x29, #700]
  400858:	aa0103e0 	mov	x0, x1
  40085c:	d37ef400 	lsl	x0, x0, #2
  400860:	8b010000 	add	x0, x0, x1
  400864:	d37df000 	lsl	x0, x0, #3
  400868:	91004000 	add	x0, x0, #0x10
  40086c:	8b000040 	add	x0, x2, x0
  400870:	b9400400 	ldr	w0, [x0, #4]
  400874:	97ffff67 	bl	400610 <inet_ntoa@plt>
  400878:	f9000fa0 	str	x0, [x29, #24]
  40087c:	90000000 	adrp	x0, 400000 <_init-0x5d8>
  400880:	91266000 	add	x0, x0, #0x998
  400884:	f9400fa1 	ldr	x1, [x29, #24]
  400888:	97ffff7e 	bl	400680 <printf@plt>
  40088c:	b942bfa0 	ldr	w0, [x29, #700]
  400890:	51000401 	sub	w1, w0, #0x1
  400894:	b902bfa1 	str	w1, [x29, #700]
  400898:	7100001f 	cmp	w0, #0x0
  40089c:	54fffc0c 	b.gt	40081c <get_local_ip+0x80>
  4008a0:	b942b7a0 	ldr	w0, [x29, #692]
  4008a4:	97ffff67 	bl	400640 <close@plt>
  4008a8:	52800000 	mov	w0, #0x0                   	// #0
  4008ac:	14000001 	b	4008b0 <get_local_ip+0x114>
  4008b0:	a9407bfd 	ldp	x29, x30, [sp]
  4008b4:	910b03ff 	add	sp, sp, #0x2c0
  4008b8:	d65f03c0 	ret

00000000004008bc <main>:
  4008bc:	a9bb7bfd 	stp	x29, x30, [sp, #-80]!
  4008c0:	910003fd 	mov	x29, sp
  4008c4:	910043a0 	add	x0, x29, #0x10
  4008c8:	d2800802 	mov	x2, #0x40                  	// #64
  4008cc:	52800001 	mov	w1, #0x0                   	// #0
  4008d0:	97ffff58 	bl	400630 <memset@plt>
  4008d4:	910043a0 	add	x0, x29, #0x10
  4008d8:	97ffffb1 	bl	40079c <get_local_ip>
  4008dc:	52800000 	mov	w0, #0x0                   	// #0
  4008e0:	a8c57bfd 	ldp	x29, x30, [sp], #80
  4008e4:	d65f03c0 	ret

00000000004008e8 <__libc_csu_init>:
  4008e8:	a9bc7bfd 	stp	x29, x30, [sp, #-64]!
  4008ec:	910003fd 	mov	x29, sp
  4008f0:	a901d7f4 	stp	x20, x21, [sp, #24]
  4008f4:	90000094 	adrp	x20, 410000 <__FRAME_END__+0xf660>
  4008f8:	90000095 	adrp	x21, 410000 <__FRAME_END__+0xf660>
  4008fc:	91374294 	add	x20, x20, #0xdd0
  400900:	913722b5 	add	x21, x21, #0xdc8
  400904:	a902dff6 	stp	x22, x23, [sp, #40]
  400908:	cb150294 	sub	x20, x20, x21
  40090c:	f9001ff8 	str	x24, [sp, #56]
  400910:	2a0003f6 	mov	w22, w0
  400914:	aa0103f7 	mov	x23, x1
  400918:	9343fe94 	asr	x20, x20, #3
  40091c:	aa0203f8 	mov	x24, x2
  400920:	97ffff2e 	bl	4005d8 <_init>
  400924:	b4000194 	cbz	x20, 400954 <__libc_csu_init+0x6c>
  400928:	f9000bb3 	str	x19, [x29, #16]
  40092c:	d2800013 	mov	x19, #0x0                   	// #0
  400930:	f8737aa3 	ldr	x3, [x21, x19, lsl #3]
  400934:	aa1803e2 	mov	x2, x24
  400938:	aa1703e1 	mov	x1, x23
  40093c:	2a1603e0 	mov	w0, w22
  400940:	91000673 	add	x19, x19, #0x1
  400944:	d63f0060 	blr	x3
  400948:	eb13029f 	cmp	x20, x19
  40094c:	54ffff21 	b.ne	400930 <__libc_csu_init+0x48>  // b.any
  400950:	f9400bb3 	ldr	x19, [x29, #16]
  400954:	a941d7f4 	ldp	x20, x21, [sp, #24]
  400958:	a942dff6 	ldp	x22, x23, [sp, #40]
  40095c:	f9401ff8 	ldr	x24, [sp, #56]
  400960:	a8c47bfd 	ldp	x29, x30, [sp], #64
  400964:	d65f03c0 	ret

0000000000400968 <__libc_csu_fini>:
  400968:	d65f03c0 	ret

Disassembly of section .fini:

000000000040096c <_fini>:
  40096c:	a9bf7bfd 	stp	x29, x30, [sp, #-16]!
  400970:	910003fd 	mov	x29, sp
  400974:	a8c17bfd 	ldp	x29, x30, [sp], #16
  400978:	d65f03c0 	ret
